package com.hitqz.robot.biz.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hitqz.robot.biz.mapper.RobotMapMapper;
import com.hitqz.robot.biz.service.RobotMapService;
import com.hitqz.robot.api.business.entity.RobotMapEntity;
import org.springframework.stereotype.Service;
/**
 * 机器人地图管理表
 *
 * @author robot
 * @date 2024-06-06 15:18:45
 */
@Service
public class RobotMapServiceImpl extends ServiceImpl<RobotMapMapper, RobotMapEntity> implements RobotMapService {
	@Override
	public RobotMapEntity findByMapCode(String mapCode) {
		return this.getOne(Wrappers.<RobotMapEntity>lambdaQuery().eq(RobotMapEntity::getMapCode, mapCode).last(" limit 1"));
	}
}